<template>
    <div>
        <h1>登录页面</h1>
        <el-input v-model="data.username" placeholder="请输入内容"></el-input>
        <el-input v-model="data.password" placeholder="请输入内容"></el-input>
        <el-button type="success" @click="login">登录</el-button>
    </div>    
</template>
<script>
export default {
  data() {
    return {
      data:{
          username:'',
          password:''
      }
    }
  },
  methods:{
      login(){
          this.$axios({
              url:'/login',
              params:this.data
          }).then((res)=>{
              //
          })
      }
  }
}
</script>
